package com.kuyun.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kuyun.entity.User1;
import com.kuyun.mapper.PersonalCentreMapper;
import com.kuyun.service.PersonalCentreService;

@Service
public class PersonalCentreServiceImpl implements PersonalCentreService {
	
	@Autowired
	private PersonalCentreMapper personalCentreMapper;

	@Override
	public Object selectUser(String i) {
		return personalCentreMapper.selectUser(i);
	}

	@Override
	public int updateUser(User1 user1) {
		int a=personalCentreMapper.updateUser(user1);
		if(a>0){
			return 1;
		}else{
			return -1;
		}
	}

	@Override
	public String selectUserName(String userId) {
		String a=personalCentreMapper.selectUserName(userId);
		System.out.println("++++++++++++++"+a);
		return a;
	}

}
